home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Maclife 157
/
MACLIFE157-2001-09.ISO.7z
/
MACLIFE157-2001-09.ISO
/
Linux
/
MacOS Tools
/
BootX 1.2.2
/
Sources
/
lib
/
MoreInterfaceLib
/
MoreInterfaceLib.h
< prev
Wrap
Text File
|
2001-07-23
|
3KB
|
100 lines
/*
File: MoreInterfaceLib.h
Contains: Interface to compatibility shim for routines not in InterfaceLib
prior to Mac OS 8.5.
Written by: Quinn
Copyright: Copyright ゥ 1999 by Apple Computer, Inc., all rights reserved.
You may incorporate this Apple sample source code into your program(s) without
restriction. This Apple sample source code has been provided "AS IS" and the
responsibility for its operation is yours. You are not permitted to redistribute
this Apple sample source code as "Apple sample source code" after having made
changes. If you're going to re-distribute the source, we require that you make
it clear in the source that the code was descended from Apple sample source
code, but that you've made changes.
Change History (most recent first):
<4> 20/4/99 Quinn Added Gestalt Value routines.
<3> 16/3/99 Quinn Added MoreUTFindDrive and MoreAddDrive.
<2> 1/3/99 Quinn Added MoreFlushCodeCacheRange. Also corrected a serious bug in
MoreDriverInstallReserveMem, which was missing the #pragma
parameter stuff. Also some general tidy up.
<1> 25/2/99 Quinn First checked in.
*/
#pragma once
/////////////////////////////////////////////////////////////////
// MoreIsBetter Setup
#include "MoreSetup.h"
/////////////////////////////////////////////////////////////////
// Mac OS Interfaces
#include <MacTypes.h>
#include <Devices.h>
#ifdef __cplusplus
extern "C" {
#endif
/////////////////////////////////////////////////////////////////
extern pascal SInt16 MoreLMGetUnitTableEntryCount(void)
TWOWORDINLINE(0x3EB8, 0x01D2);
extern pascal void MoreLMSetUnitTableEntryCount(SInt16 value)
TWOWORDINLINE(0x31DF, 0x01D2);
/////////////////////////////////////////////////////////////////
#if TARGET_CPU_68K && !TARGET_RT_MAC_CFM
#pragma parameter __D0 MoreDriverInstallReserveMem(__A0, __D0)
#endif
extern pascal OSErr MoreDriverInstallReserveMem(DRVRHeaderPtr drvrPtr, DriverRefNum refNum)
ONEWORDINLINE(0xA43D);
/////////////////////////////////////////////////////////////////
#if TARGET_CPU_68K && !TARGET_RT_MAC_CFM
#pragma parameter __D0 MoreFlushCodeCacheRange(__A0, __A1)
#endif
extern pascal OSErr MoreFlushCodeCacheRange(void *address, unsigned long count)
TWOWORDINLINE(0x7009, 0xA098);
/////////////////////////////////////////////////////////////////
extern pascal OSErr MoreUTFindDrive(SInt16 driveNum, DrvQElPtr *driveQElementPtr)
TWOWORDINLINE(0x700F, 0xA824);
/////////////////////////////////////////////////////////////////
extern pascal void MoreAddDrive(DriverRefNum drvrRefNum, SInt16 drvNum, DrvQElPtr qEl);
/////////////////////////////////////////////////////////////////
extern pascal OSErr MoreNewGestaltValue(OSType selector, long newValue)
THREEWORDINLINE(0x303C, 0x0401, 0xABF1);
extern pascal OSErr MoreReplaceGestaltValue(OSType selector, long replacementValue)
THREEWORDINLINE(0x303C, 0x0402, 0xABF1);
extern pascal OSErr MoreSetGestaltValue(OSType selector, long newValue)
THREEWORDINLINE(0x303C, 0x0404, 0xABF1);
extern pascal OSErr MoreDeleteGestaltValue(OSType selector)
THREEWORDINLINE(0x303C, 0x0203, 0xABF1);
/////////////////////////////////////////////////////////////////
#ifdef __cplusplus
}
#endif